package _12ProxyDesign.StaticProxy;

import _12ProxyDesign.StaticProxy.Admin;
import _12ProxyDesign.StaticProxy.Manager;

/**
 * 以聚合方式形成的代理
 */
public class AdminProxy implements Manager {
    private Admin admin;
    public AdminProxy(Admin admin){
        this.admin=admin;
    }
    public void doSomething() {
        System.out.println("代理要干的事情之前!");
        admin.doSomething();
        System.out.println("代理要干的事情之后！");
    }
}
